package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsSiteDesignersMapper;
import com.ruoyi.cms.domain.CmsSiteDesigners;
import com.ruoyi.cms.service.ICmsSiteDesignersService;

/**
 * 设计师Service业务层处理
 *
 * @author ruoyi
 * @date 2022-09-27
 */
@Service
public class CmsSiteDesignersServiceImpl implements ICmsSiteDesignersService
{
    @Autowired
    private CmsSiteDesignersMapper cmsSiteDesignersMapper;

    /**
     * 查询设计师
     *
     * @param id 设计师主键
     * @return 设计师
     */
    @Override
    public CmsSiteDesigners selectCmsSiteDesignersById(Long id)
    {
        return cmsSiteDesignersMapper.selectCmsSiteDesignersById(id);
    }

    /**
     * 查询设计师列表
     *
     * @param cmsSiteDesigners 设计师
     * @return 设计师
     */
    @Override
    public List<CmsSiteDesigners> selectCmsSiteDesignersList(CmsSiteDesigners cmsSiteDesigners)
    {
        return cmsSiteDesignersMapper.selectCmsSiteDesignersList(cmsSiteDesigners);
    }

    /**
     * 新增设计师
     *
     * @param cmsSiteDesigners 设计师
     * @return 结果
     */
    @Override
    public int insertCmsSiteDesigners(CmsSiteDesigners cmsSiteDesigners)
    {
        return cmsSiteDesignersMapper.insertCmsSiteDesigners(cmsSiteDesigners);
    }

    /**
     * 修改设计师
     *
     * @param cmsSiteDesigners 设计师
     * @return 结果
     */
    @Override
    public int updateCmsSiteDesigners(CmsSiteDesigners cmsSiteDesigners)
    {
        return cmsSiteDesignersMapper.updateCmsSiteDesigners(cmsSiteDesigners);
    }

    /**
     * 批量删除设计师
     *
     * @param ids 需要删除的设计师主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteDesignersByIds(Long[] ids)
    {
        return cmsSiteDesignersMapper.deleteCmsSiteDesignersByIds(ids);
    }

    /**
     * 删除设计师信息
     *
     * @param id 设计师主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteDesignersById(Long id)
    {
        return cmsSiteDesignersMapper.deleteCmsSiteDesignersById(id);
    }

    @Override
    public List<CmsSiteDesigners> selectCmsSiteDesignersLikeList(CmsSiteDesigners cmsSiteDesigners) {
        return cmsSiteDesignersMapper.selectCmsSiteDesignersLikeList(cmsSiteDesigners);
    }
}
